import styled from 'styled-components'

export const ProductWrapper = styled.div`
  width: 100%;
  padding: 20px;
  overflow: scroll;
  overflow-x: hidden;
  .product_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;

    .product_item {
      width: 23%;
      margin-right: 2%;
      margin-bottom: 30px;
      border-radius: 10px;
      padding-bottom: 50px;
      position: relative;
      box-sizing: border-box;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.1s ease-in-out;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0);
      background-color: var(--bgColorTop);

      .poster {
        width: 100%;
        img {
          width: 100%;
        }
      }

      h3 {
        color: var(--fontColorTop);
        font-size: 17px;
        padding: 0 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .type {
        padding: 0 20px;
        span {
          font-size: 12px;
          color: var(--fontColorBase);
          margin-right: 10px;
        }
      }
      .btn {
        position: absolute;
        bottom: 10px;
        right: 10px;
        left: 10px;
        display: flex;
        justify-content: space-between;
      }
    }
    .product_item:nth-child(4n) {
      margin-right: 0;
    }

    .product_item:hover {
      transform: scale(1.01) translateY(-10px);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
  }

  .product_detail {
    .title {
      font-size: 24px;
      font-weight: 700;
      padding: 20px;
      padding-bottom: 12px;
    }

    .desc {
      margin: 20px 0;
      padding: 50px 20px;
      display: flex;
      line-height: 1.5;
      align-items: center;
      justify-content: center;
      background-color: var(--bgColorBase);
    }

    .sub_title {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px 0;
      box-sizing: border-box;
      .text {
        width: 800px;
      }
    }
    img {
      width: 100%;
    }
  }
`
